package fr.afcepf.atod18.restaurants.entity;


import java.sql.Time;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

//Annotations
@Entity
@Table(name="Horaire")
public class Horaire {
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	private int jour;
	@Temporal(TemporalType.TIMESTAMP)
	private Calendar heureDebut;
	@Temporal(TemporalType.TIMESTAMP)
	private Calendar heureFin;
	
	@ManyToOne
	private TypeHoraire typeHoraire;
	
	public TypeHoraire getTypeHoraire() {
		return typeHoraire;
	}
	public void setTypeHoraire(TypeHoraire typeHoraire) {
		this.typeHoraire = typeHoraire;
	}
	
	public int getId() {
		return id;
	}
	public void setIde(int id) {
		this.id = id;
	}
	public int getJour() {
		return jour;
	}
	public void setJour(int jour) {
		this.jour = jour;
	}
	public Calendar getHeureDebut() {
		return heureDebut;
	}
	public void setHeureDebut(Calendar heureDebut) {
		this.heureDebut = heureDebut;
	}
	public Calendar getHeureFin() {
		return heureFin;
	}
	public void setHeureFin(Calendar heureFin) {
		this.heureFin = heureFin;
	}

}
